<#if page??>
<#if (page.totalRow>0)>

<#assign url="/admin/index?page=">
<#if keywords??>
	<#assign url="/admin/index?keywords=${keywords}&page=">
</#if>

<div class="in pagination">
	<#if (page.pageIndex > 1)>
		<a href="${url}${page.pageIndex-1}"><<上一页</a>
	<#else>
		<span><<上一页</span>
	</#if>
	
	<#list page.from..page.to as i>
		<#if i==page.pageIndex>
			<span class="selected">${i}</span>
		<#else>
			<a href="${url}${i}">${i}</a>
		</#if>
	</#list>
	
	<#if (page.pageIndex < page.totalPage)>
		<a href="${url}${page.pageIndex+1}">下一页>></a>
	<#else>
		<span>下一页>></span>
	</#if>
</div>
</#if>
</#if>